package com.xiaoxing.zhinenghuacangku_nanjinglu.mvp.model;

import android.app.Application;

import com.google.gson.Gson;
import com.jess.arms.integration.IRepositoryManager;
import com.jess.arms.mvp.BaseModel;

import java.util.Map;

import com.jess.arms.di.scope.ActivityScope;

import javax.inject.Inject;

import com.xiaoxing.zhinenghuacangku_nanjinglu.mvp.contract.NanJingLu_DianBiaoGongNengCaoZuoXuanZeContract;


import com.xiaoxing.zhinenghuacangku_nanjinglu.mvp.model.service.ZhiNengCangKuService;
import com.xiaoxing.zhinenghuacangku_nanjinglu.mvp.ui.entity.NanJingLu_DianBiaoGongNengCaoZuoXuanZe;

import io.reactivex.Observable;


@ActivityScope
public class NanJingLu_DianBiaoGongNengCaoZuoXuanZeModel extends BaseModel implements NanJingLu_DianBiaoGongNengCaoZuoXuanZeContract.Model {
    @Inject
    Gson mGson;
    @Inject
    Application mApplication;

    @Inject
    public NanJingLu_DianBiaoGongNengCaoZuoXuanZeModel(IRepositoryManager repositoryManager) {
        super(repositoryManager);
    }

    @Override
    public Observable<NanJingLu_DianBiaoGongNengCaoZuoXuanZe> getNanJingLu_DianBiaoGongNengCaoZuoXuanZeData(Map<String, String> map) {
        return mRepositoryManager.obtainRetrofitService(ZhiNengCangKuService.class).getNanJingLu_DianBiaoGongNengCaoZuoXuanZeData(map);

    }

    @Override
    public void onDestroy() {
        super.onDestroy();
        this.mGson = null;
        this.mApplication = null;
    }
}